Making a Git project open source when you have secret keys

You could remove the secret keys using the git-filter-repo tool, see this explanation in the GitHub documentation. git-filter-repo is much preferable to the older git filter-branch. My old, now somewhat out-of-date answer: You could remove the secret keys from the repository using a hammer like git filter-branch. There is a nice explanation on GitHub’s help … Read more

What is the appropriate way to manage API secrets within a Google Apps script?

There is no right or wrong answer. There are numerous factors to consider: If this is for/in G-Suite, then your G-Suite admins’ll have (or can get) access to anything. This may or may not be an issue. If you put the data in a sheet, anyone that has read access to the sheet can see … Read more

PBKDF2WithHmacSHA512 Vs. PBKDF2WithHmacSHA1

Let us breakdown the word piece by piece: PBKDF2–WithHmac–SHA512 Let’s go over it part by part PBKDF2 Stands for Password-based-Key-Derivative-Function, a successor of PBKDF1 and is used to implement a pseudorandom function, such as a cryptographic hash, cipher, or HMAC to the input password or passphrase along with a salt value and repeats the process … Read more

In iOS, how can I store a secret “key” that will allow me to communicate with my server?

Crazy as it sounds, this is probably the best solution. Everything else is more complicated, but not much more secure. Any fancy obfuscation techniques you use are just going to be reverse engineered almost as quickly as they’ll find this key. But this static key solution, while wildly insecure, is nearly as secure than the … Read more

convert Byte Array to Secret Key

You need to use the new keyword to call the constructor and create the object. SecretKey originalKey = new SecretKeySpec(encodedKey, 0, encodedKey.length, “AES”); When you try to call it without new, the compiler thinks it might be a method you’ve defined inside that class, hence your error message.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)