We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a109ce commit 1ecc312Copy full SHA for 1ecc312
oclp_r/encry/as1/based.py
@@ -1,4 +1,3 @@
1
-import
2
import base64
3
from oclp_r.encry.panic.panic import Panic
4
@@ -10,7 +9,7 @@ def encry(self,data):
10
9
try:
11
if not isinstance(data, bytes):
12
raise Panic("Panic:This type is not bytes.",4,"TypeError").raise_panic()
13
- self.encry = .b64encode(data)
+ self.encry = base64.b64encode(data)
14
15
return self.encry
16
except Exception as e:
0 commit comments