Ask coding questions

← Back to all posts
Encrypt and Decrypt without module
h
btfuss (177)

I need to encrypt/decrypt a string without using a non-builtin module. I'm working on a library below, and in the database section, I need to encode some stuff. Can you refer me to some resources?

Comments
hotnewtop
Baconman321 (1097)

without using a non-builtin module

Why? You may as well use a built in module, as you would have to re-make an existing algorithm or make your own - both of which are incredibly dangerous (the former is dangerous if you make a mistake in the algorithm or don't know what you are doing, and the latter is almost always going to be inferior to existing algorithms out there).

Encryption algorithms are complex for a reason - they aren't meant to be broken easily!

btfuss (177)

@Baconman321 What would you recommend then?

Baconman321 (1097)

@btfuss IDK python, but I bet they have a standard library for encryption. Try googling it.