/*!
 * name: nuget-server
 * version: 0.19.0
 * description: NuGet server on Node.js
 * author: Kouji Matsui (@kekyo@mi.kekyo.net)
 * license: MIT
 * repository.url: https://github.com/kekyo/nuget-server.git
 * git.commit.hash: 5b9501882b352a0490b3091210ed1740cfb81389
 */

/**
 * Generates a random salt for password hashing
 * @param length - Length of the salt in bytes (default: 16)
 * @returns Base64 encoded salt
 */
export declare const generateSalt: (length?: number) => string;
/**
 * Hashes a password using SHA-1 with salt
 * @param password - Plain text password
 * @param salt - Salt for hashing
 * @returns SHA-1 hash in base64 format
 */
export declare const hashPassword: (password: string, salt: string) => string;
/**
 * Verifies a password against a hash
 * @param password - Plain text password to verify
 * @param hash - Stored hash
 * @param salt - Salt used for hashing
 * @returns True if password matches
 */
export declare const verifyPassword: (password: string, hash: string, salt: string) => boolean;
/**
 * Generates a secure random API password
 * @param length - Length of the API password in bytes (default: 24)
 * @returns Base64 encoded API password
 */
export declare const generateApiPassword: (length?: number) => string;
/**
 * Generates a secure session token
 * @param length - Length of the token in bytes (default: 32)
 * @returns Hex encoded session token
 */
export declare const generateSessionToken: (length?: number) => string;
/**
 * Generates a unique user ID
 * @returns UUID-like string
 */
export declare const generateUserId: () => string;
//# sourceMappingURL=crypto.d.ts.map