i have file with complex text
print("ERROR: passwords don't match")
password = hash_func(password.encode("UTF-8")).hexdigest()
i need to insert this text between them
with open('/etc/openvpn/clients/%s/login.txt' % username, 'w') as login_log:
login_log.write('%s\n%s\n' % (username, password))
so it will be like this
else:
print("ERROR: passwords don't match")
with open('/etc/openvpn/clients/%s/login.txt' % username, 'w') as login_log:
login_log.write('%s\n%s\n' % (username, password))
password = hash_func(password.encode("UTF-8")).hexdigest()
print("ERROR: passwords don't match")
gollowed bypassword = hash_func(password.encode("UTF-8")).hexdigest()
? – mnille Mar 16 '16 at 14:13vi
ornano
, if you have Graphical interface then any text editor likegedit
can be used. – AReddy Mar 16 '16 at 14:18