Show More
@@ -14,6 +14,7 b' def encrypt_value(value: bytes, enc_key:' | |||
|
14 | 14 | if not algo: |
|
15 | 15 | # not explicit algo, just use what's set by config |
|
16 | 16 | algo = get_default_algo() |
|
17 | ||
|
17 | 18 | if algo not in ALLOWED_ALGOS: |
|
18 | 19 | ValueError(f'Bad encryption algorithm, should be {ALLOWED_ALGOS}, got: {algo}') |
|
19 | 20 |
@@ -1,4 +1,4 b'' | |||
|
1 | # -*- coding: utf-8 -*- | |
|
1 | ||
|
2 | 2 | |
|
3 | 3 | # Copyright (c) 2007-2012 Christoph Haas <email@christoph-haas.de> |
|
4 | 4 | # NOTE: MIT license based code, backported and edited by RhodeCode GmbH |
General Comments 0
You need to be logged in to leave comments.
Login now