Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8974475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:41:25+00:00 2026-06-15T18:41:25+00:00

Short Question: Is there a proved strong reversible encryption method (in Python)? Requirement: Do

  • 0

Short Question: Is there a proved strong reversible encryption method (in Python)?

Requirement: Do not require 3rd part of Python libraries.
Apply environment: transport data through networks.

I saw a method using str.translate() with a key-generated table. Here is the table generating function:

def get_table(key):
    m = hashlib.md5()
    m.update(key)
    s = m.digest()
    (a, b) = struct.unpack('<QQ', s)
    table = [c for c in string.maketrans('', '')]
    for i in xrange(1, 1024):
        table.sort(lambda x, y: int(a % (ord(x) + i) - a % (ord(y) + i)))
    return ''.join(table)

Questions about this function:

  1. Is this a good/strong reversible encryption?
  2. In the function 1024 is a big number, need we loop so many times to get a table that strong enough?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:41:26+00:00Added an answer on June 15, 2026 at 6:41 pm

    If you want strong encryption without a third-party library, you’re out of luck–the Python Standard Library only has hash functions. If you want secure encryption you’ll have to either implement something like AES yourself (this is not a good idea, as it’s really easy for the inexperienced to mess up when implementing an encryption algorithm), or change your requirements and use PyCrypto.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short version question : Is there navigator.mozIsLocallyAvailable equivalent function that works on all browsers,
The short question, is there an off the self function to make a graph
Short Question Is there a library that is supposed to replace mswinsoc.osx used to
Very short question: Is there a more elegant way to do this: Object tmp;
Short Question : Since DNS is anycast, is there any way for a DNS
Short question: Is there a shorter way to do this array<array<atomic<int>,n>,m> matrix; I was
one short question: is there any Entity-Relationship-Model of all the data that Facebook stores
I have two short question regarding Azure Storage Tables. Is there something like an
Short Question: Is there a way to call the root file system (similar to
Just a very short question about DropBox - is there any way to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.