diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2010-06-03 00:10:45 +0200 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2010-06-03 00:10:45 +0200 |
commit | 386eebb4cfa473de8db4a8337050ff20cce521a9 (patch) | |
tree | d3c20eee13f78f9e80d9beadf8b2b8ad77574cbc /comphelper/inc | |
parent | 3bc1deabfab6cc1bfe069f6f6b131aee153f9ba9 (diff) |
tl78: #i110383# password to modify support for binary types only
Diffstat (limited to 'comphelper/inc')
-rw-r--r-- | comphelper/inc/comphelper/docpasswordhelper.hxx | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/comphelper/inc/comphelper/docpasswordhelper.hxx b/comphelper/inc/comphelper/docpasswordhelper.hxx index fd04a82ec563..1a734ebf5518 100644 --- a/comphelper/inc/comphelper/docpasswordhelper.hxx +++ b/comphelper/inc/comphelper/docpasswordhelper.hxx @@ -85,8 +85,38 @@ public: // ------------------------------------------------------------------------ /** This helper function generates the hash code based on the algorithm + specified by MS for "Password to modify" feature of Word. + + @param aString + The string for which the hash should be calculated + + @return + The hash represented by sal_uInt32 + */ + + static sal_uInt32 GetWordHashAsUINT32( + const ::rtl::OUString& aString ); + + // ------------------------------------------------------------------------ + + /** This helper function generates the hash code based on the algorithm + specified by MS for "Password to modify" feature of Word. + + @param aString + The string for which the hash should be calculated + + @return + The hash represented by sequence of bytes in BigEndian form + */ + + static ::com::sun::star::uno::Sequence< sal_Int8 > GetWordHashAsSequence( + const ::rtl::OUString& aString ); + + // ------------------------------------------------------------------------ + + /** This helper function generates the hash code based on the algorithm specified by MS for "Password to modify" and passwords related to - table protection. + table protection of Excel. @param aString The string for which the hash should be calculated |