Removed duplicate function createkey/RandPass