password-protection

Can I create password protected folder in Android?

走远了吗. 提交于 2019-11-28 13:12:36
I would like to create a folder which is password protected. I am able to create a folder in the following way, but how can I create a password protected folder? File nf = new File("/sdcard/NewFolder"); nf.mkdirs(); Prabu in android there is not possible but we can hide using "." at prefix otherwise Store important folder or file in internal memory. you can see you package directory following way String dir = getPackageManager().getPackageInfo("com.example.kinkey", 0).applicationInfo.dataDir; Note: it is visible on windows pc You can't create such a folder on sdcard. Everything that's saved

Regex (regular expression) for password validation

久未见 提交于 2019-11-28 13:05:02
What would be the correct regex , to satisfy the following password criteria: Must include at least 1 lower-case letter. Must include at least 1 upper-case letter. Must include at least 1 number. Must include at least 1 special character (only the following special characters are allowed: !#% ). Must NOT include any other characters then A-Za-z0-9!#% (must not include ; for example). Must be from 8 to 32 characters long. This is what i tried, but it doesn't work: ^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?[0-9])(?=.*?[\!\#\@\$\%\&\/\(\)\=\?\*\-\+\-\_\.\:\;\,\]\[\{\}\^]).{8,32} But it should be: ^(?=.*?[a

Password Validation with Sequential Letters and Numbers - RegEx

断了今生、忘了曾经 提交于 2019-11-28 12:57:57
To have customer accounts more secure, a well crafted password is good practice. This is my Regular Expression string for password validation. /^(?=.*[0-9])(?!.*?\d{3})(?=.*[a-zA-Z])(?!.*?[a-zA-Z]{3})(?=.*[~!@#$%^&*()+-?])([a-zA-Z0-9~!@#$%^&*()+-?]{8,})$/ Represents: 8 or more characters. Uppercase letter A-Z Lowercase letters a-z Special characters ~!@#$%^&*()+-? What is this Regular Expression function for this?: Must not contain up to 3 sequential letters and/or numbers. Having numbers and/or letters in order 3 or more sequential is not OK. Example: Not OK = efg123!$, abcd567%, xyz789^&,

How password protection of Excel VBA code works?

不打扰是莪最后的温柔 提交于 2019-11-28 12:11:25
This question is related to my previous one . Can you explain or provide a link to an explanation of how Excel VBA code password protection actually works in versions prior to 2007? What is the difference in Excel 2007 and previous versions in terms of password protection? Also does Excel's password protection actually encrypt the code? How does Excel execute the code if it is encrypted? Lastly, how does password removal software for excel work? VBA security is widely considered to be pretty poor. The VBA code isn't compiled, and the source is available in the excel file. The password

VBA password protection: how it works? is it secure? are there any alternatives?

折月煮酒 提交于 2019-11-28 11:31:15
问题 In case one wants to protect VBA applications to make trial(demo) versions and not to expose the scripts, how secure the built in password protection is? Are there any alternatives? Edit: I'm asking about Excel VBA here. 回答1: Your password security is going to depend largely upon the version of office used. All other Office solutions prior to 2007 can be cracked. Office 2007 requires brute forcing the password. The default encryption mechanism is 128 bit AES. This means the higher the

Set password on Zip file using DotNetZip

 ̄綄美尐妖づ 提交于 2019-11-28 09:47:36
I'm using DotNetZip to zip my files, but I need to set a password in zip. I tryed: public void Zip(string path, string outputPath) { using (ZipFile zip = new ZipFile()) { zip.AddDirectory(path); zip.Password = "password"; zip.Save(outputPath); } } But the output zip not have password. The parameter path has a subfolder for exemple: path = c:\path\ and inside path I have subfolder What is wrong? Only entries added after the Password property has been set will have the password applied. To protect the directory you are adding, simply set the password before calling AddDirectory . using (ZipFile

SHA2 password hashing in java

一笑奈何 提交于 2019-11-28 06:34:41
I'm trying to hash some passwords with SHA2. Where can I get a snippet of java code for make that? I have seen that post but I have something missing: SHA2 password storage with Java Mac mac = Mac.getInstance("HmacSha256"); SecretKeySpec secret = new SecretKeySpec(key.getBytes(), "HmacSha256"); mac.init(secret); byte[] shaDigest = mac.doFinal(phrase.getBytes()); String hash = ""; for(byte b:shaDigest) { hash += String.format("%02x",b); } The phrase is the String I want encode right? And what is the key (line 2) Thanks in advance First, you need to be clear what it is you want to do. You say

How to create a asp.net membership provider hashed password manually?

二次信任 提交于 2019-11-28 06:02:10
I'm using a website as a frontend and all users are authenticated with the standard ASP.NET Membership-Provider. Passwords are saved "hashed" within a SQL-Database. Now I want to write a desktop-client with administrative functions. Among other things there should be a method to reset a users password. I can access the database with the saved membership-data, but how can I manually create the password-salt and -hash? Using the System.Web.Membership Namespace seems to be inappropriate so I need to know how to create the salt and hash of the new password manually. Experts step up! :) You can

Password storage in source control

喜夏-厌秋 提交于 2019-11-28 05:02:24
We store all our application and db passwords in plain text in source control. We do this as our build/deploy process generates required configuration files and also does actual deploys that require these passwords (ie: running sql against a database requires you logon to the db using valid credentials). Has anyone had a similar need where you were able to implement this type of functionality while not storing the passwords in plain text? If your plan is to store all the code and configuration information to run a production system directly from version control, and without human intervention,

Plain text password over HTTPS

泄露秘密 提交于 2019-11-28 03:22:16
I'm currently working on a PHP OpenID provider that will work over HTTPS (hence SSL encrypted). Is it wrong for me to transmit the password as plain text? HTTPS in theory, cannot be intercepted, so I don't see anything wrong. Or is this unsafe at some level and I'm failing to see this? It is safe. That's how the entire web works. All passwords in forms are always sent in plain text, so its up to HTTPS to secure it. You still need to make sure you send it via POST request, not GET. If you send it via GET request, it could be saved in plaintext in the user's browser history logs or the webserver