Paste Search Dynamic
Recent pastes
cryptography fernet
  1. from cryptography.fernet import Fernet
  2.  
  3. # Use the Fernet code from your service here
  4.  
  5. f = Fernet('mmExmaYZBo2IFlv9c2_4NpeL8RoRDlyvHqo90WVYXxI=')
  6.  
  7. def decoder(token: str) -> str:
  8.  
  9.     return f.decrypt(token.encode()).decode()
  10.  
  11. # password to encrypt goes here
  12.  
  13. passq = f.encrypt("+o/mm8VzU9AkUZNVCZM3YNyII2Pg8K0ft7VJuUSl".encode())
  14.  
  15. print(passq)
  16.  
  17. # your encrypted password will be something like: b'gAAAAABdjaxPCipBjlta1MTHC-7LXlslxHcCZZ2SBuuiSkSBy9-vBD7CFiAm_EsGcb7vqMKK6JcmtoZEyaf1n6IGbEjvoxS5AQ=='
  18.  
  19. # ignore b before the encrypted password
  20.  
  21. #Code to decode your password, update argument of decoder function
  22.  
  23. print(decoder('gAAAAABhjK3Qm1Q67fXlIdtRm1U7tgcko-CLxtvxs4yvHy4JmZf3yp6wR2iGzpy84B2kZbLkOEOKoUVQWSAw9BS5iT_XJo3N_a-lVbuG-Y1vDdT2rACLGcrBYAk3PDTt7stRX7wiRptF'))
  24.  
  25.  
  26.  
Parsed in 0.008 seconds