Use a Python script to generate an Android SALT Scrambling Code

Source: Internet
Author: User

When releasing paid Android apps, You need to randomly generate SALT scrambling codes in the file. The following is a Python script (of course you can choose C/Java/SHELL/Perl or anything else)

#! /Usr/bin/python # Filename: gen_salt.py import random salt = [] for I in range (0, 30): salt. append (random. randint (-128,127) print salt

 

Run $ python gen_salt.py and the result is as follows: [4, 30, 42,-124,-120,-75, 77, 38,-112, 35, 4,-19, -9,-83,122,-115,-34, 44,-95,-31,-102,-94,-85,-20,-73,126,-16, 28, 20,-54]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.