This commit is contained in:
Your Name 2024-07-02 19:48:16 +00:00
parent 21be7fd279
commit 5a29ac490e
13 changed files with 51 additions and 50 deletions

View file

@ -11,12 +11,11 @@
void dec_salt(void) {
size_t i;
for (i = 0; i < sizeof(MU_SALT_ENC) / sizeof(int); i++)
MU_SALT_BUF[i] = MU_SALT_ENC[i];
MU_SALT_BUF[i] = (char)MU_SALT_ENC[i];
MU_SALT_BUF[i + 1] = '\0';
}
/* Using not only there */
char *enc_password(const char *prog_name, const char *pass, const char *salt) {
if (salt == NULL)
dec_salt();