FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

muhammedrahil/Base64-Encoder-And-Decoder: A built-in module in Python, the base64 library offers functions for encoding and decoding binary data to and from base64 strings, effectively converting any binary data to plain text. A common encoding method called Base64 converts binary data into a string of printable ASCII characters · GitHub

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Base64-Encoder-And-Decoder

base64 using Django encrypt and decrypt

A built-in module in Python, the base64 library offers functions for encoding and decoding binary data to and from base64 strings, effectively converting any binary data to plain text. A common encoding method called Base64 converts binary data into a string of printable ASCII characters

import base64

encode primary key

pk=kwargs.get('pk')
enc = base64.b64encode(str(pk).encode('ascii'))
enc=enc.decode()
                
  • eg: MjA=

decode primary key

pk=kwargs.get('pk')
denc = base64.b64decode(pk)
pk = denc.decode('ascii')
                
  • eg: 15

About

A built-in module in Python, the base64 library offers functions for encoding and decoding binary data to and from base64 strings, effectively converting any binary data to plain text. A common encoding method called Base64 converts binary data into a string of printable ASCII characters

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors


Back | FazBrowse Home | New Git URL