eric6/Utilities/crypto/__init__.py

changeset 8235
78e6d29eb773
parent 8143
2c730d5fd177
child 8273
698ae46f40a4
equal deleted inserted replaced
8234:fcb6b4b96274 8235:78e6d29eb773
251 Module function to change the remembered master password. 251 Module function to change the remembered master password.
252 252
253 @param newPassword new password to be used (string) 253 @param newPassword new password to be used (string)
254 """ 254 """
255 global MasterPassword 255 global MasterPassword
256 256 MasterPassword = pwEncode(newPassword) if newPassword else None
257 if newPassword == "":
258 MasterPassword = None
259 else:
260 MasterPassword = pwEncode(newPassword)
261 257
262 258
263 def dataEncrypt(data, password, keyLength=32, hashIterations=10000): 259 def dataEncrypt(data, password, keyLength=32, hashIterations=10000):
264 """ 260 """
265 Module function to encrypt a password. 261 Module function to encrypt a password.

eric ide

mercurial