A method of realizing data security storage and algorithm storage by means of semiconductor memory device employs high level security memory technology, while provides users' data transmission storage. Further, the invention provides an open application interface to support writing and invoking user self-defined algorithm. The invention also comprises dual password management, setting multiple management authorities, and database controls, randomly encrypting and anti-falsifying technology, etc. In view of the prior art, the invention has the following technical effects, such as, realizing storage of common data and storage of data to be protected and / or algorithm at the same time; thereby greatly increasing the security of data storage, such that the method can be broadly applied to information safety field, such as software copyright protection, online banking, social insurance and medical insurance, online identification, electronic transaction, digital certificates, business and tax administration, etc.